﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Reflection;
using System.Text;
using EverBuy.SocialNetworking.Data.DataFactory;
using EverBuy.SocialNetworking.Data.Repository.Abstract.Factory;
using log4net;

namespace EverBuy.SocialNetworking.Services.Abstracts
{
    /// <summary>
    /// 
    /// </summary>
    public abstract class ServiceBase
    {
        /// <summary>
        /// 
        /// </summary>
        protected static readonly ILog Logger = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

        /// <summary>
        /// 
        /// </summary>
        private static readonly string ConnectionStringName = ConfigurationManager.AppSettings.Get("ConnectionStringName");

        /// <summary>
        /// 
        /// </summary>
        protected static readonly IDataFactory Factory = DataFactoryCreator.GetFactory(ConnectionStringName);
    }
}
